# $Id: PKGBUILD 65271 2012-02-20 12:44:04Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=xsel
pkgver=1.2.0
pkgrel=5
pkgdesc="XSel is a command-line program for getting and setting the contents of the X selection"
arch=(i686 x86_64)
url="http://www.vergenet.net/~conrad/software/xsel/"
license=("custom")
depends=('libx11')
makedepends=('libxt')
source=(http://www.vergenet.net/~conrad/software/xsel/download/$pkgname-$pkgver.tar.gz)
md5sums=('75983f143ce83dc259796c6eaf85c8f5')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make
  make DESTDIR=$pkgdir install
  mkdir -p $pkgdir/usr/share/licenses/xsel/
  install -D -m0644 COPYING $pkgdir/usr/share/licenses/xsel/COPYING
}
